#include <IdGenerator.h>


IdGenerator * IdGenerator::_instance = NULL;

IdGenerator::IdGenerator()
{
	_node_number = 0;
}

IdGenerator::~IdGenerator()
{

}

IdGenerator* IdGenerator::instance()
{
	if (_instance == NULL)
	{
		_instance = new IdGenerator();
	}

	return _instance;

}

int IdGenerator::generateId()
{
	_node_number++;
	return _node_number;
}
